const { client_id } = window

export const profile = {
    Api: {
        independenceSet:
            ['xx'].includes(client_id) ? {
                filed: 'PersonType',
                title: '人员类型',
                // 树形
                url: 'getPersonTypeTree',
                type: 'TableNavTree001',
                // // 平级
                // url: 'getPersonType',
                // type: 'TableNav001',
            } : false,
        controller: {
            hideInTable: ['xx'].includes(client_id),
            hideInAdded: ['xx'].includes(client_id),
            hideInModify: ['xx'].includes(client_id),
            hideInSearch: ['xx'].includes(client_id),
        }
    },
    Organization: {
        independenceSet: false,

        projectUuid: {
            hideInTable: ['jtgj'].includes(client_id),
            hideInAdded: ['jtgj'].includes(client_id),
            hideInModify: ['jtgj'].includes(client_id),
            hideInSearch: ['jtgj'].includes(client_id),
        },
        winningBidderUuid: {
            hideInTable: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInAdded: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInModify: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInSearch: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
        },
        organizationType: {
            hideInTable: !['jtgj'].includes(client_id),
            hideInAdded: !['jtgj'].includes(client_id),
            hideInModify: !['jtgj'].includes(client_id),
            hideInSearch: !['jtgj'].includes(client_id),
        },
        amount: {
            hideInTable: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInAdded: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInModify: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInSearch: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
        },
        planBitulith: {
            hideInTable: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInAdded: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInModify: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInSearch: true,
        },
        planCementConcrete: {
            hideInTable: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInAdded: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInModify: ['jtgj', 'bada', 'mutishiyanshi', 'longdu'].includes(client_id),
            hideInSearch: true,
        },
    },
    OrganizationGroup: {
        independenceSet: false,
        projectUuid: {
            hideInAdded: true,
            hideInModify: true,
            hideInTable: true,
            hideInSearch: !['jszx'].includes(client_id),
        }
    }
}
